<!-- app/templates/base.html -->
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>{% block title %}DCO Webhook{% endblock %}</title>
    <!-- Tailwind CSS -->
    <link href="https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css" rel="stylesheet">
    <!-- 自定义CSS -->
    <link rel="stylesheet" href="{{ url_for('static', filename='css/styles.css') }}">
    {% block head %}{% endblock %}
</head>
<body class="bg-gray-100 text-gray-900">
    <!-- 导航栏 -->
    <nav class="bg-blue-600 p-4">
        <div class="container mx-auto flex justify-between items-center">
            <a href="{{ url_for('index') }}" class="text-white font-bold text-lg">DCO Webhook</a>
            <div>
                <a href="{{ url_for('index') }}" class="text-white mx-2">主页</a>
                <a href="{{ url_for('view_events') }}" class="text-white mx-2">查看事件</a>
            </div>
        </div>
    </nav>

    <!-- 主内容区域 -->
    <div class="container mx-auto my-8">
        {% block content %}{% endblock %}
    </div>

    <!-- 页脚 -->
    <footer class="bg-blue-600 text-white text-center py-4 fixed bottom-0 w-full">
        &copy; {{ datetime.utcnow().year }} DCO Webhook. 版权所有。
    </footer>

    <!-- 自定义JS -->
    <script src="{{ url_for('static', filename='js/scripts.js') }}"></script>
    {% block scripts %}{% endblock %}
</body>
</html>
